home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / ds3100.md / gdb / doc / Makefile < prev    next >
Encoding:
Makefile  |  1992-07-01  |  9.9 KB  |  316 lines

  1. # This file was generated automatically by configure.  Do not edit.
  2. host_alias = decstation
  3. host_cpu = mips
  4. host_vendor = dec
  5. host_os = ultrix42
  6. target_alias = decstation
  7. target_cpu = mips
  8. target_vendor = dec
  9. target_os = ultrix42
  10. target_makefile_frag = 
  11. host_makefile_frag = 
  12. site_makefile_frag = 
  13. links = gdbinv-m.m4 gdbinv-s.m4
  14. VPATH = .
  15. ALL=all.internal
  16. ##Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  17.  
  18. # Makefile for GDB documentation.
  19. # This file is part of GDB.
  20.  
  21. # This program is free software; you can redistribute it and/or modify
  22. # it under the terms of the GNU General Public License as published by
  23. # the Free Software Foundation; either version 2 of the License, or
  24. # (at your option) any later version.
  25. # This program is distributed in the hope that it will be useful,
  26. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  27. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28. # GNU General Public License for more details.
  29. # You should have received a copy of the GNU General Public License
  30. # along with this program; if not, write to the Free Software
  31. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  32.  
  33. srcdir = .
  34.  
  35. prefix = /usr/local
  36.  
  37. exec_prefix = $(prefix)
  38. bindir = $(exec_prefix)/bin
  39. libdir = $(exec_prefix)/lib
  40.  
  41. datadir = $(prefix)/lib
  42. mandir = $(prefix)/man
  43. man1dir = $(mandir)/man1
  44. man2dir = $(mandir)/man2
  45. man3dir = $(mandir)/man3
  46. man4dir = $(mandir)/man4
  47. man5dir = $(mandir)/man5
  48. man6dir = $(mandir)/man6
  49. man7dir = $(mandir)/man7
  50. man8dir = $(mandir)/man8
  51. man9dir = $(mandir)/man9
  52. infodir = /local/emacs/info
  53. includedir = $(prefix)/include
  54. docdir = $(datadir)/doc
  55.  
  56. SHELL = /bin/sh
  57.  
  58. INSTALL = update
  59. INSTALL_PROGRAM = $(INSTALL)
  60. INSTALL_DATA = $(INSTALL)
  61.  
  62. AR = ar
  63. AR_FLAGS = qv
  64. BISON = bison
  65. RANLIB = ranlib
  66.  
  67. # main GDB source directory
  68. gdbdir = ..
  69.  
  70. # Documentation (gdb.dvi) needs either GNU m4 or SysV m4; 
  71. # Berkeley/Sun don't have quite enough. 
  72. #M4=/usr/5bin/m4
  73. M4=gm4
  74.  
  75. # where to find texinfo; GDB dist should include a recent one
  76. TEXIDIR=$(srcdir)/${gdbdir}/../texinfo/fsf
  77.  
  78. # where to find makeinfo, preferably one designed for texinfo-2
  79. MAKEINFO=makeinfo
  80.  
  81. # where to find texi2roff, ditto
  82. TEXI2ROFF=texi2roff
  83.  
  84. # Where is the source dir for the READLINE library?  Traditionally in .. or .
  85. # (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
  86. READLINE_DIR = $(srcdir)/${gdbdir}/../readline
  87.  
  88. # Main GDB manual's source files
  89. SFILES_DOCDIR = \
  90.     $(srcdir)/gdb.texinfo $(srcdir)/pretex.m4 $(srcdir)/none.m4 \
  91.     $(srcdir)/all.m4 gdbinv-m.m4 gdbinv-s.m4 gdbVN.m4
  92.  
  93. # Which version of GDB manual? default includes everything
  94. CONFIG=all
  95.  
  96. #### Host, target, and site specific Makefile fragments come in here.
  97. ###
  98.  
  99. all install:
  100.  
  101. info: gdb.info gdbint.info
  102. all-doc: gdb.info gdb.dvi refcard.dvi gdb-internals gdbint.dvi
  103. clean-info:
  104.     -rm -f *.info*
  105.  
  106. install-info: info
  107.     for i in *.info* ; do \
  108.         $(INSTALL_DATA) $$i $(infodir)/$$i ; \
  109.     done
  110.  
  111. STAGESTUFF = *.info* gdb-all.texi gdbVN.m4
  112.  
  113. # Copy the object files from a particular stage into a subdirectory.
  114. stage1: force
  115.     -mkdir stage1
  116.     -mv $(STAGESTUFF) stage1
  117.  
  118. stage2: force
  119.     -mkdir stage2
  120.     -mv $(STAGESTUFF) stage2
  121.  
  122. stage3: force
  123.     -mkdir stage3
  124.     -mv $(STAGESTUFF) stage3
  125.  
  126. against=stage2
  127.  
  128. comparison: force
  129.     for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
  130.  
  131. de-stage1: force
  132.     -(cd stage1 ; mv -f * ..)
  133.     -rmdir stage1
  134.  
  135. de-stage2: force
  136.     -(cd stage2 ; mv -f * ..)
  137.     -rmdir stage2
  138.  
  139. de-stage3: force
  140.     -(cd stage3 ; mv -f * ..)
  141.     -rmdir stage3
  142.  
  143. clean:
  144.     rm -f gdb.dvi rluser.texinfo inc-hist.texi gdb-all* gdb.info* gdbVN.m4
  145.     rm -f gdb-internals gdbint.?? gdbint.??? gdbint.info
  146.     rm -f refcard.ps refcard.dvi refcard.log *~
  147.  
  148. # GDB QUICK REFERENCE (TeX dvi file, CM fonts)
  149. refcard.dvi : $(srcdir)/refcard.tex
  150.     TEXINPUTS=$(srcdir):.:$$TEXINPUTS tex refcard.tex; rm -f refcard.log 
  151.     rm -f rcfonts.tex
  152.  
  153. # GDB QUICK REFERENCE (PostScript output, common PS fonts)
  154. refcard.ps : $(srcdir)/refcard.tex $(srcdir)/psrc.sed
  155.     sed -f $(srcdir)/psrc.sed refcard.tex >psref.tex
  156.     TEXINPUTS=$(srcdir):.:$$TEXINPUTS tex psref.tex
  157.     dvips -t landscape psref -o; mv psref.ps refcard.ps
  158.     rm -f psref.dvi psref.log
  159.  
  160. # GDB QUICK REFERENCE (PostScript output, common PS fonts w/long names)
  161. lrefcard.ps : $(srcdir)/refcard.tex $(srcdir)/lpsrc.sed
  162.     sed -f $(srcdir)/lpsrc.sed refcard.tex >psref.tex
  163.     TEXINPUTS=$(srcdir):.:$$TEXINPUTS tex psref.tex
  164.     dvips -t landscape psref -o; mv psref.ps lrefcard.ps
  165.     rm -f psref.dvi psref.log
  166.  
  167. #  "Readline" appendices.  Get them here so both TeX and texi2roff can find.
  168. rluser.texinfo: ${READLINE_DIR}/doc/rluser.texinfo
  169.     ln -s ${READLINE_DIR}/doc/rluser.texinfo . || \
  170.     ln ${READLINE_DIR}/doc/rluser.texinfo . || \
  171.     cp ${READLINE_DIR}/doc/rluser.texinfo .
  172.  
  173. inc-hist.texi: ${READLINE_DIR}/doc/inc-hist.texi
  174.     ln -s ${READLINE_DIR}/doc/inc-hist.texi . || \
  175.     ln ${READLINE_DIR}/doc/inc-hist.texi . || \
  176.     cp ${READLINE_DIR}/doc/inc-hist.texi .
  177.  
  178. # File to record current GDB version number (copied from main dir Makefile.in)
  179. gdbVN.m4 : $(srcdir)/${gdbdir}/Makefile.in
  180.     echo "_define__(<_GDB_VN__>,`sed <$(srcdir)/../Makefile.in -n 's/VERSION = //p'`)" > ./gdbVN.m4
  181.  
  182. # GDB MANUAL: texinfo source, created by preprocessing w/m4
  183. # If you want other configs in the makefile, add or modify instructions for 
  184. # building source here, then change CONFIG (that way you get info, dvi, 
  185. # roff targets automatically for your config).
  186. # Be sure to not create a bad gdb-all.texi if ${M4} is missing or aborts...
  187. # The nonsense with gdbVN.m4 is to get this to run with both Sun and GNU make.
  188. #   Note that we can *generate* gdbVN.m4, but since we distribute one in the
  189. #   source directory for the benefit of people who *don't* use this makefile,
  190. #   VPATH will often tell make not to bother building it, because the one
  191. #   in the srcdir is up to date.  (if not, then make should build one here).
  192.  
  193. gdb-all.texi: ${SFILES_DOCDIR}
  194.     if [ ! -f ./gdbVN.m4 ]; then \
  195.         ln -s $(srcdir)/gdbVN.m4 . || \
  196.         ln $(srcdir)/gdbVN.m4 . || \
  197.         cp $(srcdir)/gdbVN.m4 . ; else true; fi
  198.     rm -f foobus.texinfo
  199.     ${M4} $(srcdir)/pretex.m4 $(srcdir)/none.m4 $(srcdir)/all.m4 \
  200.         gdbVN.m4 $(srcdir)/gdb.texinfo  >foobus.texinfo
  201.     rm -f gdb-all.texi
  202.     mv foobus.texinfo ./gdb-all.texi
  203.  
  204. # GDB MANUAL: TeX dvi file
  205. gdb.dvi : gdb-${CONFIG}.texi rluser.texinfo inc-hist.texi
  206.     TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS tex gdb-${CONFIG}.texi
  207.     TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS tex gdb-${CONFIG}.texi
  208.     texindex gdb-${CONFIG}.??
  209.     TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS tex gdb-${CONFIG}.texi
  210.     mv gdb-${CONFIG}.dvi ./gdb.dvi
  211.     rm -f gdb-${CONFIG}.?? gdb-${CONFIG}.???
  212.  
  213. # GDB MANUAL: info file
  214. # We're using texinfo2, and older makeinfo's may not be able to
  215. # cope with all the markup.  In the meantime, we distribute the info
  216. # files 
  217. gdb.info: gdb-${CONFIG}.texi
  218.     $(MAKEINFO) +no-split gdb-${CONFIG}.texi
  219.  
  220. # GDB MANUAL: roff translations
  221. # Try to use a recent texi2roff.  v2 was put on prep in jan91.
  222. # If you want an index, see texi2roff doc for postprocessing 
  223. # and add -i to texi2roff invocations below.
  224. # Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
  225. #    corresponding -e lines when later texi2roff's are current)
  226. # + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
  227. # + @c's deleted explicitly because texi2roff sees texinfo commands in them
  228. # + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
  229. # + @alphaenumerate is ridiculously new, turned into @enumerate
  230.  
  231.  
  232. # gdb manual suitable for [tn]roff -mm
  233. # '@noindent's removed due to texi2roff-2 mm bug; if yours is newer, 
  234. #   try leaving them in
  235. # ditto special treatment of @ftable in rluser.texinfo
  236. gdb.mm: gdb-${CONFIG}.texi ${READLINE_DIR}/doc/rluser.texinfo inc-hist.texi
  237.     rm -f ./rluser.texinfo
  238.     sed -e 's/^@ftable/@table/g' \
  239.         -e 's/^@end ftable/@end table/g' \
  240.         ${READLINE_DIR}/doc/rluser.texinfo > ./rluser.texinfo
  241.     sed -e '/\\input texinfo/d' \
  242.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  243.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  244.         -e '/^@c/d' \
  245.         -e 's/{.*,,/{/' \
  246.         -e '/@noindent/d' \
  247.         -e 's/@ / /g' \
  248.         -e 's/^@alphaenumerate/@enumerate/g' \
  249.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  250.         gdb-${CONFIG}.texi | \
  251.     $(TEXI2ROFF) -mm | \
  252.     sed -e 's/---/\\(em/g' \
  253.     >gdb.mm 
  254.     rm ./rluser.texinfo
  255.  
  256. # gdb manual suitable for [gtn]roff -me
  257. gdb.me: gdb-${CONFIG}.texi ${READLINE_DIR}/doc/rluser.texinfo inc-hist.texi
  258.     rm -f ./rluser.texinfo
  259.     sed -e 's/^@ftable/@table/g' \
  260.         -e 's/^@end ftable/@end table/g' \
  261.         ${READLINE_DIR}/doc/rluser.texinfo > ./rluser.texinfo
  262.     sed -e '/\\input texinfo/d' \
  263.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  264.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  265.         -e '/^@c/d' \
  266.         -e 's/{.*,,/{/' \
  267.         -e 's/@ / /g' \
  268.         -e 's/^@alphaenumerate/@enumerate/g' \
  269.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  270.         gdb-${CONFIG}.texi | \
  271.     $(TEXI2ROFF) -me | \
  272.     sed -e 's/---/\\(em/g' \
  273.     >gdb.me 
  274.     rm ./rluser.texinfo
  275.  
  276. # gdb manual suitable for [gtn]roff -ms
  277. gdb.ms: gdb-${CONFIG}.texi ${READLINE_DIR}/doc/rluser.texinfo inc-hist.texi
  278.     rm -f ./rluser.texinfo
  279.     sed -e 's/^@ftable/@table/g' \
  280.         -e 's/^@end ftable/@end table/g' \
  281.         ${READLINE_DIR}/doc/rluser.texinfo > ./rluser.texinfo
  282.     sed -e '/\\input texinfo/d' \
  283.         -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
  284.         -e '/^@ifinfo/,/^@end ifinfo/d' \
  285.         -e '/^@c/d' \
  286.         -e 's/{.*,,/{/' \
  287.         -e 's/@ / /g' \
  288.         -e 's/^@alphaenumerate/@enumerate/g' \
  289.         -e 's/^@end alphaenumerate/@end enumerate/g' \
  290.         gdb-${CONFIG}.texi | \
  291.     $(TEXI2ROFF) -ms | \
  292.     sed -e 's/---/\\(em/g' \
  293.     >gdb.ms 
  294.     rm ./rluser.texinfo
  295.  
  296. # GDB INTERNALS MANUAL: TeX dvi file
  297. gdbint.dvi : gdbint.texinfo
  298.     TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS tex gdbint.texinfo
  299.     texindex gdbint.??
  300.     TEXINPUTS=${TEXIDIR}:.:$(srcdir):$$TEXINPUTS tex gdbint.texinfo
  301.     rm -f gdbint.?? gdbint.aux gdbint.cps gdbint.fns gdbint.kys \
  302.         gdbint.log gdbint.pgs gdbint.toc gdbint.tps gdbint.vrs
  303.  
  304. # GDB INTERNALS MANUAL: info file
  305. gdb-internals: gdbint.info
  306.  
  307. gdbint.info: gdbint.texinfo
  308.     $(MAKEINFO) +no-split $(srcdir)/gdbint.texinfo
  309.  
  310. force:
  311.  
  312. Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  313.     $(SHELL) ./config.status
  314.